package cn.fjsay.java.demo2;

public class ImporttantUniversity extends University{
    void enterRule(Student student){
        double totalScore = student.getTotalScore();
        if (totalScore>=600){
            System.out.println(student.getName()+"考了"+ student.getTotalScore()+"被重点大学录取！");
        }
        else {
            System.out.println(student.getName()+"考了"+ student.getTotalScore()+"没有被重点大学录取！");
        }


    }



}
